
#include "Number.h"
#include "Subject.h"
#include "Observer.h"

int main()
{
	Number num;
	BigLetter bigLetter;
	SmallLetter smallLetter;

	BigLetterObserver bigObserver(&num, &bigLetter);
	SmallLetterObserver smallObserver(&num, &smallLetter);

	num.attach(&bigObserver);
	num.attach(&smallObserver);

	num.set(1);
	num.set(2);

	return 0;
}
